import sys
import os
import rsa

(pub, priv) = rsa.newkeys(64)

print 'Generating keys ...' 

home = os.getenv("HOME")

f = open(home + '/.gd_pub', 'w')
f.write(str(pub))

f = open(home + '/.gd_priv', 'w')
f.write(str(priv))

	
print 'Generating keys ... : DONE'
